home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!ittpub!ittpub!nntp
- Newsgroups: comp.lang.c++
- Subject: Re: About inline function
- Message-ID: <1996Jan22.112514.1750@ittpub>
- From: wil@ittpub.nl (Wil Evers)
- Date: 22 Jan 96 11:25:14 WET
- References: <4dnvnl$o0s@mis.cpc.ku.ac.th>
- Distribution: world
- Nntp-Posting-Host: lintilla
-
- In article <4dnvnl$o0s@mis.cpc.ku.ac.th> b37ans@cc2.cpe.ku.ac.th (Anon
- Sricharoenchai Mr. (37056140)) writes:
-
- > Why does Borland C++ can't compile the function with 'for, while, goto'
- > statement to be "inline"? I think the compiler should can do it, because
- > it's possible to do.
-
- Sure it's possible, but that doesn't mean the compiler has to. The
- `inline' atttribute, like `register', is only a hint to the compiler: it
- is up to the compiler to decide whether the function will actually be
- inline expanded. Many compilers will silently decide not to do so, but the
- Borland compiler nicely warns us about this.
-
- - Wil
-